﻿using System.Xml.Linq;
using GeoAPI.CoordinateSystems;
using GeoAPI.Geometries;
using System;

namespace AzukiMap.MapSource
{
    public interface IMapSource
    {
        bool Compare(MapSource other);
        //IEnvelope MaxExtent { get; }
        IPolygon MaxExtent { get; set; }
        string Name { get; }
        int Srid { get; }
        double MaxScale { get;  }
        double MinScale { get; }
        MapSourceTypes Type { get; }
        Uri SourceLogo { get; }
        string Copyright { get; }
        ICoordinateSystem CoordinateSystem { get; }
        double InchesPerUnit { get; }

        XElement ToXml();
        void Parse(XElement xmlElement);
    }
}
